import {createRouter, createWebHistory, type RouteRecordRaw} from 'vue-router'
import passwdInputViews from '../views/passwd-input-views.vue'
import LayoutView from "@/layout/layout-view.vue";
const routes:  RouteRecordRaw[] = [
  {
    path: '/',
    name: 'passwdAuth',
    component: passwdInputViews,
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (About.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import('../views/AboutView.vue'),
  },
  {
    path: '/main',
    name: 'mainView',
    component: LayoutView,
  }
]
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
      ...routes,
  ],
})

export default router
